import { useState } from 'react';
import styles from './index.less';
import classNames from '@/utils/classnames';
import { Button } from 'antd-mobile';

export default function IndexPage() {
  const [resolved, setResolved] = useState(false);
  return (
    <div
      className={classNames(styles.page, resolved ? styles.pageResolved : '')}
    >
      <h3>标题1</h3>
      <h3>标题2</h3>
      <h3>标题3</h3>
      <h3>标题4</h3>
      <h3>标题5</h3>
      <Button
        onClick={() => {
          setResolved(!resolved);
        }}
      >
        {resolved ? '关闭修复' : '开启修复'}
      </Button>
      <input type="text" placeholder="请输入文本" />
    </div>
  );
}
